<?php
    #-------------------------------------------------------------#
	# This file is part of the Kumomado - Virtual Window Platform #
	# for PHP. (c) 2009 Tsai, Min Che <tirme0812@gmail.com>       #
	# Please visit http://www.kumomado.org/ for more information. #
	#                                                             #
	# This software is licensed under the GNU License v3. Please  #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#

	Kumomado::load('Application.Controller.KumomadoApplicationController');
	/**
	 * @package applications
	 * @subpackage google
	 * @author Tsai, Min Che
	 */
	class GoogleMapsController extends KumomadoApplicationController {
		/**
		 * 
		 * @param array $params
		 */
		public function Action_Maps($params) {
			$this->view->map();
		}
		public function Action_StreetView($params) {
			$lat = $params['lat'] > 0 ? $params['lat'] : 25.033708;
			$lng = $params['lng'] > 0 ? $params['lng'] : 121.609911;
			$this->view->streetView($lat, $lng);
		}
	}
?>